package com.cmrx.model.dao;

import com.cmrx.model.entity.CommonPictureThumbnail;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * Created by angle on 2019/2/16.
 */
@Mapper
@Repository
public interface PictureThumbnailDao {
    /**
     * 根据方位图id查找缩略图
     * @param id
     * @return
     */
    CommonPictureThumbnail queryById(String id);

    /**
     * 根据picture图片id查找缩略图
     * @param pictureid
     * @return
     */
    CommonPictureThumbnail queryByPictureId(String pictureid);

    /**
     * 根据id删除缩略图
     * @param id
     * @return
     */
    int deleteById(String id);

    /**
     * 添加缩略图
     * @param pictureThumbnail
     * @return
     */
    int addPictureThumbnail(CommonPictureThumbnail pictureThumbnail);

    /**
     * 修改缩略图
     * @param pictureThumbnail
     * @return
     */
    int updateById(CommonPictureThumbnail pictureThumbnail);
}
